package org.jeecg.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Objects;

@Data
@TableName("bd_city")
@ApiModel(value="市", description="中国地级市表")
public class BdCityEntity{

    @TableId(type = IdType.ASSIGN_ID)
    @Id
    @Column(name = "city_id")
    @ApiModelProperty(value = "主键ID")
    private Object cityId;
    @Basic
    @Column(name = "province_id")
    private Object provinceId;
    @Basic
    @Column(name = "province_code")
    @ApiModelProperty(value = "省编码")
    private String provinceCode;
    @Basic
    @Column(name = "adr_code")
    private String adrCode;
    @Basic
    @Column(name = "adr_name")
    private String adrName;
    @Basic
    @Column(name = "full_pinyin")
    private String fullPinyin;
    @Basic
    @Column(name = "short_pinyin")
    private String shortPinyin;
    @Basic
    @Column(name = "longitude")
    private BigDecimal longitude;
    @Basic
    @Column(name = "latitude")
    private BigDecimal latitude;
    @Basic
    @Column(name = "creator_id")
    private Object creatorId;
    @Basic
    @Column(name = "create_time")
    private Timestamp createTime;
    @Basic
    @Column(name = "modifier_id")
    private Object modifierId;
    @Basic
    @Column(name = "modify_time")
    private Timestamp modifyTime;
    @Basic
    @Column(name = "deleted")
    private Object deleted;

    public Object getCityId() {
        return cityId;
    }

    public void setCityId(Object cityId) {
        this.cityId = cityId;
    }

    public Object getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Object provinceId) {
        this.provinceId = provinceId;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getAdrCode() {
        return adrCode;
    }

    public void setAdrCode(String adrCode) {
        this.adrCode = adrCode;
    }

    public String getAdrName() {
        return adrName;
    }

    public void setAdrName(String adrName) {
        this.adrName = adrName;
    }

    public String getFullPinyin() {
        return fullPinyin;
    }

    public void setFullPinyin(String fullPinyin) {
        this.fullPinyin = fullPinyin;
    }

    public String getShortPinyin() {
        return shortPinyin;
    }

    public void setShortPinyin(String shortPinyin) {
        this.shortPinyin = shortPinyin;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public Object getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Object creatorId) {
        this.creatorId = creatorId;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Object getModifierId() {
        return modifierId;
    }

    public void setModifierId(Object modifierId) {
        this.modifierId = modifierId;
    }

    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Timestamp modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Object getDeleted() {
        return deleted;
    }

    public void setDeleted(Object deleted) {
        this.deleted = deleted;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BdCityEntity that = (BdCityEntity) o;
        return adrCode == that.adrCode && Objects.equals(cityId, that.cityId) && Objects.equals(provinceId, that.provinceId) && Objects.equals(provinceCode, that.provinceCode) && Objects.equals(adrName, that.adrName) && Objects.equals(fullPinyin, that.fullPinyin) && Objects.equals(shortPinyin, that.shortPinyin) && Objects.equals(longitude, that.longitude) && Objects.equals(latitude, that.latitude) && Objects.equals(creatorId, that.creatorId) && Objects.equals(createTime, that.createTime) && Objects.equals(modifierId, that.modifierId) && Objects.equals(modifyTime, that.modifyTime) && Objects.equals(deleted, that.deleted);
    }

    @Override
    public int hashCode() {
        return Objects.hash(cityId, provinceId, provinceCode, adrCode, adrName, fullPinyin, shortPinyin, longitude, latitude, creatorId, createTime, modifierId, modifyTime, deleted);
    }
}
